<template>
  <div>
    HOME 欢迎页
    <button @click="jiji">dian</button>
  </div>
</template>

<script>
// import * as ajax from '@/api/user';
// import { mapState } from 'vuex';

export default {
  name: 'home',
  components: {},
  created() {
    // console.log(this.$store.state.user.token);
  },
  computed: {
    // ...mapState({ token: state => state.user.token }),
  },
  methods: {
    jiji() {
      // ajax.getUserInfo();
      // const ss = document.cookie.replace('token=', '');
      // ajax.getUserInfo(ss);
    },
  },
};
</script>
